Developer Documentation

QuickTime 4 API Documentation

QuickTime 4 Reference

| Previous | Chapter Contents | Chapter Top | Next |

Constants

Flags for Movie Import and Export Components

QuickTime 1.6.1 added four new componentFlags values. The canMovieImportInPlace and movieImportSubTypeIsFileExtension values were added in QuickTime 2.0:

enum {
    canMovieExportAuxDataHandle                 = 1 << 7,
    canMovieImportValidateHandles               = 1 << 8,
    canMovieImportValidateFile                  = 1 << 9,
    dontRegisterWithEasyOpen                    = 1 << 10,
    canMovieImportInPlace                       = 1 << 11,
    movieImportSubTypeIsFileExtension           = 1 << 12,
    canMovieImportPartial                       = 1 << 13,
    hasMovieImportMIMEList                = 1 << 14,
    canMovieExportFromProcedures            = 1 << 15,
    canMovieExportValidateMovie             = 1L << 16,
    movieExportNeedsResourceFork             = 1L << 17,
    canMovieImportDataReferences         = 1L << 18,
    movieExportMustGetSourceMediaType        = 1L << 19
    canMovieImportValidateDataReferences     = 1L << 21
};

Constant descriptions

canMovieExportAuxDataHandle
Set this bit if your export component exports to an auxiliary data handle. A movie export component that supports the MovieExportGetAuxillaryData function should set this flag in its componentFlags parameter.
canMovieImportValidateHandles
Set this bit if your movie import component can and wants to validate handles.
canMovieImportValidateFile
Set this bit if your movie import component can and wants to validate files.
dontRegisterWithEasyOpen
Set this bit when Macintosh Easy Open is installed and you do not want QuickTime to register your component with Easy Open (preferring to handle interactions with Macintosh Easy Open yourself).
canMovieImportInPlace
Set this bit if your movie import component can create a movie from a file without having to write to a separate disk file. Examples include MPEG and AIFF import components.
movieImportSubTypeIsFileExtension
Set this bit if your component's subtype is a file extension instead of a Macintosh file type. For example, if your import component opens files with an extension of .doc , you would set this flag and set your component subtype to 'DOC ' .
canMovieImportPartial
 
Set this bit if your movie import component implements the MovieImportSetOffsetAndLimit function.
hasMovieImportMIMEList
 
Set this bit if you movie import component supports returning a MIME type list. A movie import component that supports the MovieImportGetMIMETypeList function should set the hasMovieImportMIMEList flag in the componentFlags field of the component description record.
canMovieExportFromProcedures
 
Set this bit if your movie export component supports the MovieExportFromProceduresToDataRef function. A movie export component that supports the MovieExportFromProceduresToDataRef function should also set the canMovieExportFromProcedures flag in its componentFlags .
canMovieExportValidateMovie
 
Set this bit if your movie export component validates the movie passed to it. A movie export component that supports the MovieExportValidate function should also set the canMovieExportValidateMovieflag in its component flags.
movieExportNeedsResourceFork
 
Set this bit if your export component requires the creation of the resource fork of a Mac OS file.
canMovieImportDataReferences
 
Set this bit if your movie import component can accept a data reference (such as a handle) as the source for the import.
movieExportMustGetSourceMediaType
 
Set this bit if the export component implements the new exporter component registration mechanism. The component must implement the MovieExportGetSourceMediaType function.
canMovieImportValidateDataReferences
 
Set this bit if the export component supports the MovieImportValidateDataRef function.

Text Export Options

The following constants represent options for exporting text using a text export component. You use these constants to specify the format of the exported text. From the QuickTime user interface, you specify a text export option in the Text Export Settings dialog box. You can also specify the text export option programmatically by calling TextExportSetSettings .

enum {
    kMovieExportTextOnly        = 0,
    kMovieExportAbsoluteTime    = 1,
    kMovieExportRelativeTime    = 2
};

Constant descriptions

kMovieExportTextOnly
Export text only, without text descriptors or time stamps.
kMovieExportAbsoluteTime
Export text with text descriptors and time stamps. For each sample, calculate the time stamp relative to the start of the movie.
kMovieExportRelativeTime
Export text with text descriptors and time stamps. For each sample, calculate the time stamp relative to the previous time stamp.

© 1999 Apple Computer, Inc.

| Previous | Chapter Contents | Chapter Top | Next |